﻿@model LookupField.Models.LookupModel

<input id="@Model.HiddenId" name="Cliente" type="hidden" value="" />
<input name="@Model.DisplayId" type="text" readonly="readonly" disabled="disabled"/>
<a id="@Model.LinkId" href="javascript:void()" class="icon-button tips" original-title="Procurar"><img src="/Content/img/icons/button/search.png" width="18" height="18" alt="icon"></a>


<div id="dialog-@Model.LinkId" title="Procurar @Model.LinkId" style="display:none;">

        <div class="body">
            <div class="st-form-line">             
                    <input id="query-@Model.LinkId" name="query" type="text">  
                    <input id="search-@Model.LinkId" value="Pesquisar" type="button" class="st-clear"/>            
            </div>
            <div class="st-form-line"> 
            <table class="tablesorter" cellspacing="0">
                <thead>
                    <tr>
                        <th style="width:30px" class="sorton">
                            <input type="checkbox" />
                        </th>
                        @foreach(var c in Model.Columns){
                        <th class="@c.Key-header">
                           @c.Value
                        </th>
                        }
                    </tr>
                </thead>
                <tbody class="results-@Model.LinkId"> 
                    <tr>
                        <td colspan="7">Nenhum registro
                        </td>
                    </tr>
                </tbody>
            </table>
            </div>
        </div>
</div>